package hn.cch.thymeleaf.repository;

import hn.cch.thymeleaf.entity.Movie;
import org.springframework.data.neo4j.repository.GraphRepository;
import org.springframework.stereotype.Repository;



/**
 * @author CCH
 * @version 2018.07.10
 */
@Repository
public interface MovieRepository extends GraphRepository<Movie> {

    //Movie findByName(@Param("name") String name);
    //
    //@Query("MATCH (m:Movie) WHERE m.name =~ ('(?i).*'+{name}+'.*') RETURN m")
    //Page<Movie> findByName(@Param("name") String name, Pageable pageable);

}
